import { Component, OnInit, Input } from '@angular/core';

import { CommonService } from '../../../core/services/common.service';

@Component({
    selector: 'op-value-indicator',
    templateUrl: './value-indicator.component.html'
})
export class ValueIndicatorComponent implements OnInit {
    @Input() inputValue: any;
    hasInputValue: boolean;

    constructor(
        private commonService: CommonService
    ) { }

    ngOnInit(): void {
        this.hasInputValue = !this.commonService.isNullOrUndefinedOrEmptyString(this.inputValue);
    }
}